package com.ks.repair.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.ks.core.base.OperationContext;
import com.ks.repair.entity.BRepairBill;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ks.repair.entity.BRepairBillUserAddressCount;
import com.ks.repair.entity.vo.BRepairBillInfo;
import com.ks.repair.entity.vo.BRepairBillParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 报修-会员填写的报修单 Mapper 接口
 * </p>
 *
 * @author kingdee123
 * @since 2020-12-15
 */
public interface BRepairBillMapper extends BaseMapper<BRepairBill> {

    List<BRepairBillUserAddressCount> getMonthCount();

    List<BRepairBillUserAddressCount> getBRepairBillUserCount(@Param("tenantId") int tenantId);

    List<BRepairBillUserAddressCount> getServiceTypeUserCount(@Param("tenantId") int tenantId);

    List<BRepairBillInfo> selectBRepairBillInfo(Page page, @Param("bRepairBillParam")BRepairBillParam bRepairBillParam);

    int selectBRepairBillCount(@Param("bRepairBillParam")BRepairBillParam bRepairBillParam);
}
